package tpenchere.service;

import tpenchere.client.impl.ClientProvider;
import tpenchere.model.User;

public class ClientHolder {
	private static ClientHolder instance = null;
	
	private ClientProvider provider;
	
	private ClientHolder() {}
	
	public static ClientHolder getInstance(){
		if(instance == null) {
			instance = new ClientHolder();
			instance.provider = new ClientProvider();
			instance.provider.initClient();
		}
		return instance;
	}
	
	public ClientProvider getProvider() {
		return provider;
	}

	public void setProvider(ClientProvider provider) {
		this.provider = provider;
	}
}
